﻿using Seggu.Daos.Interfaces;
using Seggu.Data;
using System.Collections.Generic;
using System.Linq;

namespace Seggu.Daos
{
    public class ProducerDao : GenericDao<Producer>, IProducerDao
    {
        public IEnumerable<Producer> GetCollectors()
        {
            return
                from p in this.Set
                where p.IsCollector
                select p;
        }
    }
}
